package com.smart.manager.product.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 猪仔配置 - 品种管理
 *
 * @author leo
 * @date 2023/09/07
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
@Table(name = "product_pig_breed")
public class PigBreed extends BaseLongModel {

    @ApiModelProperty("品种代码")
    private String code;

    @ApiModelProperty("品种名称")
    private String name;

    @ApiModelProperty("是否有机")
    private Boolean isOrganic;

    @ApiModelProperty("品种描述")
    private String describe;

    @ApiModelProperty("品种图片")
    private String image;


    @ApiModelProperty("显示排序")
    private Integer sort;

}
